package com.lmy.springCloud.service.Impl;

import com.lmy.springCloud.dao.StorageDao;
import com.lmy.springCloud.service.StorageService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
@Slf4j
public class StorageServiceImpl implements StorageService {

    @Resource
    private StorageDao storageDao;

    @Override
    public void reduce(Long productId, Integer amount) {
        log.info("===========seata_storage_micro_service_20090 扣减库存start============");
        storageDao.reduce(productId, amount);
        log.info("===========seata_storage_micro_service_20090 扣减库存end============");

    }
}
